import Vue from 'vue';
import Vuex from 'vuex';
import getters from './getters';
import shop from './modules/shop.js';
import good from './modules/good.js';
import app from './modules/app.js';
import order from './modules/order.js';

Vue.use(Vuex);
const debug = process.env.NODE_ENV !== 'production';

const store = new Vuex.Store({
  modules: {shop, good, app, order},
  getters,
  strict: debug
  /* plugins: debug ? [createLogger()] : [] */
});
export default store;

